package edu.ucsd.cse222b.events;

import java.util.HashSet;
import java.util.Set;

import edu.ucsd.cse222b.network.NetFlow;

public class FlowEvent {
	protected double timestamp;
	
	private Set<NetFlow> flowsFinishing=new HashSet<NetFlow>();
	
	private Set<NetFlow> flowsArriving=new HashSet<NetFlow>();
	
	public FlowEvent(double ts){
		timestamp=ts;
	}
	public double getTimestamp(){
		return timestamp;
	}
	
	public Set<NetFlow> getFlowsFinishing(){
		return flowsFinishing;
	}
	
	public void addFlowFinishing(NetFlow flow){
		flowsFinishing.add(flow);
	}
	
	public Set<NetFlow> getFlowsArriving(){
		return flowsArriving;
	}
	public void addFlowArriving(NetFlow flow){
		flowsArriving.add(flow);
	}
}
